package com.kaede.hayate.common.base;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class BaseQueryRequest {

    private Integer pageNo = 1;
    private Integer pageSize = 20;
    private String orderByField;
    private Boolean asc = true;

    private Long id;
    private Long createBy;
    private Long updateBy;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startCreateDate;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endCreateDate;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startUpdateDate;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endUpdateDate;




    public Boolean getAsc() {
        return asc;
    }

    public void setAsc(Boolean asc) {
        this.asc = asc;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderByField() {
        return orderByField;
    }

    public void setOrderByField(String orderByField) {
        this.orderByField = orderByField;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getStartCreateDate() {
        return startCreateDate;
    }

    public void setStartCreateDate(Date startCreateDate) {
        this.startCreateDate = startCreateDate;
    }

    public Date getEndCreateDate() {
        return endCreateDate;
    }

    public void setEndCreateDate(Date endCreateDate) {
        this.endCreateDate = endCreateDate;
    }

    public Date getStartUpdateDate() {
        return startUpdateDate;
    }

    public void setStartUpdateDate(Date startUpdateDate) {
        this.startUpdateDate = startUpdateDate;
    }

    public Date getEndUpdateDate() {
        return endUpdateDate;
    }

    public void setEndUpdateDate(Date endUpdateDate) {
        this.endUpdateDate = endUpdateDate;
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }
}
